package com.rybbaby.tss.core.utils;

import java.util.ResourceBundle;

public class Config {
  /**
   * 
   * @author davis.shi
   */
  private static final ResourceBundle config = ResourceBundle.getBundle("config");
  
  
  //private static final ResourceBundle uuims_config = ResourceBundle.getBundle("uuims");

  /**
     *
     */
  private Config() {
  }
  
  /**
   * 
   * @param key
   * @return
   */
  public static String getString(String key) {
    return config.getString(key);
  }

  public static int getInt(String key) {
    String temp = config.getString(key);
    int value = Integer.parseInt(temp);
    return value;
  }
  
  public static boolean getBoolean(String key) {
	    String temp = config.getString(key);
	    Boolean value = Boolean.parseBoolean(temp);
	    return value;
	  }
  
  public static void main(String[] args) {
	System.out.println(getBoolean("true"));
}
  
  /**
   * uuims配置文件
   * @param key
   * @return
   */
/*  public static String uuimsString(String key) {
    return uuims_config.getString(key);
  }

  public static int uuimsInt(String key) {
    String temp = uuims_config.getString(key);
    int value = Integer.parseInt(temp);
    return value;
  }*/
  
  
}